﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_Category : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
        if (e.Item.ItemIndex < 0)
        {
            return;
        }
        BusinessLayer.Menu menu = (BusinessLayer.Menu)e.Item.DataItem;
        HyperLink hyperMenu = (HyperLink)e.Item.FindControl("hyperCate");
        hyperMenu.Text = menu.Menu_Name;
        hyperMenu.NavigateUrl = menu.Menu_Detail;
    }
}